package etc.netty.attr;

import io.netty.util.AttributeKey;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author lee
 */
public class ChannelAttrs {

    public static final AttributeKey<Integer> forward = AttributeKey.valueOf("forward");

    public static final AttributeKey<byte[]> dynamicKey = AttributeKey.valueOf("dynamicKey");

    public static final AttributeKey<Address> address = AttributeKey.valueOf("address");

    @AllArgsConstructor
    @Data
    public static class Address {
        private String host;
        private int port;
    }
}
